package MyGui;

import java.awt.Font;
import javax.swing.ImageIcon;
import java.awt.Color;

import Element.Line;

public class GuiConst {
    public static Font fontDefault, fontSmall;

    public static ImageIcon ipadIcon;

    public static final Color clrMyGray = new Color(25,25,15);

    public static final int NUM_ICON = 30;
    public static ImageIcon[] icons;
    public static String[] iconTips;

    static {
        fontDefault = new Font("Dialog", Font.PLAIN, 11);
        fontSmall   = new Font("Dialog", Font.PLAIN, 9);

        icons = new ImageIcon[NUM_ICON];
        iconTips = new String[NUM_ICON];

        Line dummy = new Line();
        ClassLoader cl = dummy.getClass().getClassLoader();

        ipadIcon  = new ImageIcon(cl.getResource("Graphics/PDO.gif"));

        icons[0]  = new ImageIcon(cl.getResource("Graphics/Arrow.gif"));
        icons[1]  = new ImageIcon(cl.getResource("Graphics/Zoom.gif"));
        icons[2]  = new ImageIcon(cl.getResource("Graphics/ZoomAll.gif"));
        icons[3]  = new ImageIcon(cl.getResource("Graphics/ZoomPrev.gif"));
        icons[4]  = new ImageIcon(cl.getResource("Graphics/Source.gif"));
        icons[5]  = new ImageIcon(cl.getResource("Graphics/Bus.gif"));
        icons[6]  = new ImageIcon(cl.getResource("Graphics/Line.gif"));
        icons[7]  = new ImageIcon(cl.getResource("Graphics/TX.gif"));
        icons[8]  = new ImageIcon(cl.getResource("Graphics/DG.gif"));
        icons[9]  = new ImageIcon(cl.getResource("Graphics/TX3.gif"));
        icons[10] = new ImageIcon(cl.getResource("Graphics/Cable.gif"));
        icons[11] = new ImageIcon(cl.getResource("Graphics/Regul.gif"));
        icons[12] = new ImageIcon(cl.getResource("Graphics/CktBk.gif"));
        icons[13] = new ImageIcon(cl.getResource("Graphics/Recloser.gif"));
        icons[14] = new ImageIcon(cl.getResource("Graphics/Fuse.gif"));
        icons[15] = new ImageIcon(cl.getResource("Graphics/Swt3.gif"));
        icons[16] = new ImageIcon(cl.getResource("Graphics/DrawoutBk.gif"));
        icons[17] = new ImageIcon(cl.getResource("Graphics/Sect.gif"));
        icons[18] = new ImageIcon(cl.getResource("Graphics/Switch.gif"));
        icons[19] = new ImageIcon(cl.getResource("Graphics/SwtGnd.gif"));
        icons[20] = new ImageIcon(cl.getResource("Graphics/Load.gif"));
        icons[21] = new ImageIcon(cl.getResource("Graphics/SeriesCap.gif"));
        icons[22] = new ImageIcon(cl.getResource("Graphics/Cap.gif"));
        icons[23] = new ImageIcon(cl.getResource("Graphics/CT.gif"));
        icons[24] = new ImageIcon(cl.getResource("Graphics/Motor.gif"));
        icons[25] = new ImageIcon(cl.getResource("Graphics/Reactor.gif"));
        icons[26] = new ImageIcon(cl.getResource("Graphics/Arrester.gif"));
        icons[27] = new ImageIcon(cl.getResource("Graphics/PT.gif"));
        icons[28] = new ImageIcon(cl.getResource("Graphics/Group.gif"));
        icons[29] = new ImageIcon(cl.getResource("Graphics/Lock.gif"));

        iconTips[0]  = "Select";
        iconTips[1]  = "Zoom Window";
        iconTips[2]  = "Zoom All";
        iconTips[3]  = "Zoom Previous";
        iconTips[4]  = "Draw Source";
        iconTips[5]  = "Draw Bus";
        iconTips[6]  = "Draw Line";
        iconTips[7]  = "Draw Transformer";
        iconTips[8]  = "Draw Distributed Generation";
        iconTips[9]  = "Draw 3-Winding Transformer";
        iconTips[10] = "Draw Cable";
        iconTips[11] = "Draw Regulator";
        iconTips[12] = "Draw Circuit Breaker";
        iconTips[13] = "Draw Recloser";
        iconTips[14] = "Draw Fuse";
        iconTips[15] = "Draw Transfer Switch";
        iconTips[16] = "Draw Drawout Breaker";
        iconTips[17] = "Draw Sectionalizer";
        iconTips[18] = "Draw Switch";
        iconTips[19] = "Draw Grounding Switch";
        iconTips[20] = "Draw Load";
        iconTips[21] = "Draw Series Capacitor";
        iconTips[22] = "Draw Capacitor";
        iconTips[23] = "Draw Current Transformer";
        iconTips[24] = "Draw Motor";
        iconTips[25] = "Draw Reactor";
        iconTips[26] = "Draw Arrester";
        iconTips[27] = "Draw Voltage Transformer";
        iconTips[28] = "Draw Group";
        iconTips[29] = "Tool Lock";
    }//end of static()
}